import {request} from "@/utils/request"
import type {BigShotPage, FollowType, KnowledgePage , KnowledgeParams,PageParams} from "@/types/consult"


export const getKnowledgePage = (params:KnowledgeParams)=>
  request<KnowledgePage>('/inthepink/home/knowledge','GET',params)


export const getBigShotsPage = (params: PageParams) =>
  request<BigShotPage>('/home/page/doc', 'GET', params)


// 关注

export const followOrUnfollow = (id:number | string , type:FollowType) => request('/like','POST',{id,type})